import { InputNumber, Select, Switch } from 'antd';
import { FunctionComponent } from 'react';
import DatePickerWidget from './datePicker/datePicker.widget';
import InputWidget from './input/input.widget';
import RadioGroupWidget from './radioGroup/radioGroup.widget';
import RangePickerWidget from './rangePicker/rangePicker.widget';

export const widgets: { [key: string]: FunctionComponent<any> } = {
  input: InputWidget,
  inputNumber: InputNumber,
  radioGroup: RadioGroupWidget,
  select: Select,
  switch: Switch,
  datePicker: DatePickerWidget,
  rangePicker: RangePickerWidget,
};
